package com.youth.config.redis;

import java.util.concurrent.TimeUnit;

/**
 * @ClassName IDistributedLocker
 * @Description: TODO
 * @Author yjwu
 * @Date 2019/10/30 22:36
 **/
public interface IDistributedLocker {
    void lock(String key);

    void lock(String key, int timeout, TimeUnit timeUnit);

    void unLock(String key);
}
